package com.zkx.laolaiyi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zkx.laolaiyi.dto.UserDTO;
import com.zkx.laolaiyi.entity.User;
import com.zkx.laolaiyi.exceptions.RedisUnknownException;
import com.zkx.laolaiyi.exceptions.UserIsExistedException;
import com.zkx.laolaiyi.result.Result;

public interface IUserService extends IService<User> {
    Result<String> register(UserDTO userDTO);

    boolean saveUser(User user) throws UserIsExistedException, RedisUnknownException;
}
